package com.chinemit.cui.components.container.panel
{
	
	import com.chinemit.cui.components.tooltips.ToolTipStage;
	import com.chinemit.cui.components.core.CUIComponent;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	import mx.utils.StringUtil;

	public class BaseView extends CUIComponent implements IView
	{
		public function BaseView()
		{
			super();
		}
		
		override public function set toolTipText(value:String):void
		{
			super.toolTipText = value;
			if(value !=null && StringUtil.trim(value)!=""){
				ToolTipStage.getInstance().registerToStage(this,value,stage );
			}else{
				ToolTipStage.getInstance().unregister(this);
			}
		}
			
		/**
		 * 视图移入场景
		 * 
		 */		
		override protected function into():void{
			super.into();
		}
		
		/**
		 * 视图移出场景
		 * 
		 */		
		override protected function out():void{
			super.out();
		}
		
		/**
		 * 刷新\重置
		 * 
		 */		
		public function refresh():void{
			
		}
	}
}